run-js-test requires girepository.h header file which is provided
by gobject-introspection. gobject-introspection is required by gjs,
another of our dependencies, so, usually, the header gets included
by inheriting the cflags from there but some distros interpret
pkg-config fields more strictly[1] so that will not be the case there.
Listing direct dependencies explicitly is a good practice any way
so let’s do that.
[1]: https://bugs.freedesktop.org/show_bug.cgi?id=105572
https://bugzilla.gnome.org/show_bug.cgi?id=787864
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1114
)
executable('run-js-test', 'run-js-test.c',
- dependencies: [mutter_dep, gio_dep, gjs_dep],
+ dependencies: [mutter_dep, gio_dep, gi_dep, gjs_dep],
include_directories: [conf_inc],
link_with: libshell,
build_rpath: mutter_typelibdir,